/**
 * @author: zhiqiang
 * @version: 1.0
 * @date: 2022/3/17
 * @description:
 */
package com.lzq.strategy.improved;

public class Client {
    public static void main(String[] args) {
        double count = 305.68;

        PriceStrategyA strategyA = new PriceStrategyA();
        PriceStrategyB strategyB = new PriceStrategyB();
        PriceStrategyC strategyC = new PriceStrategyC();
        PriceContext contextA = new PriceContext(strategyA);
        PriceContext contextB = new PriceContext(strategyB);
        PriceContext contextC = new PriceContext(strategyC);
        contextA.pay(count);
        contextB.pay(count);
        contextC.pay(count);
    }
}
